﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Data;
using DAL;

namespace logic
{
    public class buyerPriceHistory
    {
        public static DataSet select(string where, string orderby, int pagesize, int pageindex)
        {
            return DbHelper.ExecuteDataSetPageSize("*", "vw_BuyerPriceHistory_list", where, "bpId", orderby, pagesize, pageindex);
        }

        public static void insertByUpdateProduct(int productId)
        {
            BuyerPriceHistory.insertByUpdateProduct(productId);
        }

        public static void insertByUpdateBuyerPriceStuctrue(int productId, int buyerId)
        {
            BuyerPriceHistory.insertByUpdateBuyerPriceStuctrue(productId, buyerId);
        }

        public static DataRow getCollect(int productId, int buyerId)
        {
            return BuyerPriceHistory.getCollect(buyerId, productId);
        }

        public static DataSet sublist(int productId, int buyerId)
        {
            return BuyerPriceHistory.sublist(productId, buyerId);
        }
    }
}
